import request from "@/utils/request";

export function addTrainingCycle(trainingCycle) {
    return request({
        url: '/trainingCycle/addTrainingCycle',
        method: 'post',
        data:trainingCycle
    })
}

export function deleteTrainingCycle(ids) {
    return request({
        url: '/trainingCycle/deleteTrainingCycle',
        method: 'delete',
        data:ids
    })
}

export function changeTrainingCycle(trainingCycle) {
    return request({
        url: '/trainingCycle/updateTrainingCycle',
        method: 'post',
        data:trainingCycle
    })
}

export function getAllTrainingCycle(trainingCycle,page,pageSize) {
    return request({
        url: '/trainingCycle/getAllTrainingCycle?'+'page='+page+'&pageSize='+pageSize,
        method: 'post',
        data:trainingCycle
    })
}
export function getTrainingCycleList() {
    return request({
        url: '/trainingCycle/getTrainingCycleList',
        method: 'get',
    })
}
